package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MeowCustomersMapper;
import com.ruoyi.system.domain.MeowCustomers;
import com.ruoyi.system.service.IMeowCustomersService;
import com.ruoyi.common.core.text.Convert;

/**
 * 客户管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-24
 */
@Service
public class MeowCustomersServiceImpl implements IMeowCustomersService 
{
    @Autowired
    private MeowCustomersMapper meowCustomersMapper;

    /**
     * 查询客户管理
     * 
     * @param customerId 客户管理主键
     * @return 客户管理
     */
    @Override
    public MeowCustomers selectMeowCustomersByCustomerId(String customerId)
    {
        return meowCustomersMapper.selectMeowCustomersByCustomerId(customerId);
    }

    /**
     * 查询客户管理列表
     * 
     * @param meowCustomers 客户管理
     * @return 客户管理
     */
    @Override
    public List<MeowCustomers> selectMeowCustomersList(MeowCustomers meowCustomers)
    {
        return meowCustomersMapper.selectMeowCustomersList(meowCustomers);
    }

    /**
     * 新增客户管理
     * 
     * @param meowCustomers 客户管理
     * @return 结果
     */
    @Override
    public int insertMeowCustomers(MeowCustomers meowCustomers)
    {
        return meowCustomersMapper.insertMeowCustomers(meowCustomers);
    }

    /**
     * 修改客户管理
     * 
     * @param meowCustomers 客户管理
     * @return 结果
     */
    @Override
    public int updateMeowCustomers(MeowCustomers meowCustomers)
    {
        return meowCustomersMapper.updateMeowCustomers(meowCustomers);
    }

    /**
     * 批量删除客户管理
     * 
     * @param customerIds 需要删除的客户管理主键
     * @return 结果
     */
    @Override
    public int deleteMeowCustomersByCustomerIds(String customerIds)
    {
        return meowCustomersMapper.deleteMeowCustomersByCustomerIds(Convert.toStrArray(customerIds));
    }

    /**
     * 删除客户管理信息
     * 
     * @param customerId 客户管理主键
     * @return 结果
     */
    @Override
    public int deleteMeowCustomersByCustomerId(String customerId)
    {
        return meowCustomersMapper.deleteMeowCustomersByCustomerId(customerId);
    }
}
